<?php


/**
 * [删除文件]
 * @param  [type] $value [description]
 * @return [type]        [description]
 */
function del($dirs)
{
	 $way = glob($dirs.'/*');
	 foreach ($way as $value) {
	 	 is_dir($value)?del($value):unlink($value);
	 }
	 rmdir($dirs);
	
}

del('../a');

?>